package edu.hcmus.sow.web;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;

@Controller
public class ExceptionController {
   private static Logger logger = Logger.getLogger(ExceptionController.class);

   @ExceptionHandler(Exception.class)
   public String handleException(Exception ex) {
      logger.error(ex);
      return "error";
   }

}
